<include file="Public:head_nav" />
        <style type="text/css">
            dl.select{width: 33.33333%}
        </style>
<div class="content">
<div class="search">
    <form method="get"  id="soForm">
        <input type="hidden" value="Wap" name="m">
        <input type="hidden" value="Estate" name="c">
        <input type="hidden" value="index" name="a">
    <div class="search_2_1">
        <input name="key" type="text" class="search_2_input" id="houseKey" value="{$url['key']}" placeholder="请输入楼盘名称搜索">
    </div>
    <div class="search_3">
        <a href="javascript:;" class="search_3_but" id="so_but">搜索</a>
    </div>
    </form>
</div>

<div class="div_box01">
    <div class="list_box01">
        <dl class="select">
            <dt>{$cate_pid_info ? $cate_pid_info['name'] : '区域' }</dt>
            <dd>
                <ul>
                    <li><a href="{:getUrl('Estate/index','alias',$url)}" class="on">不限</a></li>
                    <volist name='area_cate' id='vo'>
                        <li><a title="{$vo.name}" href="{:getUrl('Estate/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                    </volist>
                </ul>
            </dd>
        </dl>

        <dl class="select">
            <dt>{$url['houseType'] ? $s['houseType']['name'] : '类型' }</dt>
            <dd>
                <ul>
                    <li><a href="{:getUrl('Estate/index','houseType',$url)}" class="on">不限</a></li>
                    <volist name='menu[2]' id='vo'>
                        <li <php>if($url['houseType']==$vo['id']){</php> class="ser_col01" <php>}</php> ><a href="{:getUrl('Estate/index','houseType',$url,$vo['id'])}">{$vo.name}</a></li>
                    </volist>
                </ul>
            </dd>
        </dl>

        <dl class="select">
            <dt>{$url['price'] ? $s['price']['name'] : '年代' }</dt>
            <dd>
                <ul>
                    <li><a href="{:getUrl('Estate/index','years',$url)}" class="on">不限</a></li>
                    <volist name='menu[21]' id='vo'>
                        <li><a href="{:getUrl('Estate/index','years',$url,$vo['id'])}">{$vo.name}</a></li>
                    </volist>
                </ul>
            </dd></dl>

    </div>

    <div class="houses_hot overflow_h">
        <ul>
            <volist name='list' id='vo'>
            <li class="overflow_h">
                <a href="{:U('Estate/detail',array('id'=>$vo['id']))}" class="picx"><img alt="{$vo.title}" src="{$vo.img}" width="100" height="85"></a>
                <dl>
                    <dt><a target="_blank" href="{:U('Estate/detail',array('id'=>$vo['id']))}">{$vo.title}</a></dt>
                    <dd class="ellipsis"><label>建筑年代：</label>{$vo.years}</dd>
                    <dd class="ellipsis"><label>所在位置：</label>{$vo.address}</dd>
                    <dd class="ellipsis">
                        出售<a title="{$vo.title}出售的二手房" href="{:U('Estate/used',array('id'=>$vo['id']))}" target="_blank">{$vo.sell_count}</a>套　|　出租<a title="{$vo.title}出租房"href="{:U('Estate/rental',array('id'=>$vo['id']))}" target="_blank">{$vo.lease_count}</a>套
                    </dd>
                </dl>
            </li>
            </volist>
        </ul>
        <div class="plastic_bottom_pages">{$page}</div>
    </div>
</div>

<div class="div_box">
    <php>if($url){</php>
    <div class="ser_body02 overflow_h">
        <i></i>
        <span class="ser_b02_title">当前找房条件</span>
        <div class="ser_b02_n">
            <div class="ser_b02_n1"><ul>
                <volist name='s' id='vo'>
                    <li><a href="{$vo.url}"><span class="ser_ico"></span>{$vo.name}</a></li>
                </volist>
            </ul>
            </div>
        </div>
    </div>
    <php>}</php>
    <div class="ser_body02 overflow_h">
        <i></i>
        <span class="ser_b02_title">城市</span>
        <div class="ser_b02_n">
            <div class="ser_b02_n1"><ul>
                <li <php>if(!$url['alias']){</php> class="ser_col01" <php>}</php> ><a href="{:getUrl('Estate/index','alias',$url)}">不限</a></li>
                <volist name='area_cate' id='vo'>
                    <li <php>if($cate_pid_info['alias']==$vo['alias']){</php> class="ser_col01" <php>}</php>><a title="{$vo.name}" href="{:getUrl('Estate/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                </volist>
            </ul>
            </div>
        </div>
    </div>
    <php>if($houseArr['arr']['metro']){</php>
    <div class="ser_body02 overflow_h">
        <i></i>
        <span class="ser_b02_title">地铁</span>
        <div class="ser_b02_n">
            <div class="ser_b02_n1"><ul>
                <volist name='cate_pid_list' id='vo'>
                    <li  <php>if($url['metro']==$vo['id']){</php> class="ser_col01 <php>}</php> ><a title="{$vo.name}" href="{:getUrl('Estate/index','metro',$url,$vo['id'])}">{$vo.name}</a></li>
                </volist>
            </ul>
            </div>
        </div>
    </div>
    <php>}else if($cate_pid_list){</php>
    <div class="ser_body02 overflow_h">
        <i></i>
        <span class="ser_b02_title">区域</span>
        <div class="ser_b02_n">
            <div class="ser_b02_n1"><ul>
                <volist name='cate_pid_list' id='vo'>
                    <li  <php>if($url['alias']==$vo['alias']){</php> class="ser_col01" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('Estate/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                </volist>
            </ul>
            </div>
        </div>
    </div>
    <php>}</php>

    <div class="ser_body02 overflow_h">
        <i></i>
        <span class="ser_b02_title">类型</span>
        <div class="ser_b02_n">
            <div class="ser_b02_n1">
                <ul>
                    <li <php>if(!$url['houseType']){</php> class="ser_col01" <php>}</php>><a href="{:getUrl('Estate/index','houseType',$url)}">不限</a></li>
                    <volist name='menu[2]' id='vo'>
                        <li <php>if($url['houseType']==$vo['id']){</php> class="ser_col01" <php>}</php> ><a href="{:getUrl('Estate/index','houseType',$url,$vo['id'])}">{$vo.name}</a></li>
                    </volist>
                </ul></div>
        </div>
    </div>

    <div class="ser_body02 overflow_h">
        <i></i>
        <span class="ser_b02_title">年代</span>
        <div class="ser_b02_n">
            <div class="ser_b02_n1">
                <ul>
                    <li <php>if(!$url['years']){</php> class="ser_col01" <php>}</php>><a href="{:getUrl('Estate/index','years',$url)}">不限</a></li>
                    <volist name='menu[21]' id='vo'>
                        <li <php>if($url['years']==$vo['id']){</php> class="ser_col01" <php>}</php> ><a href="{:getUrl('Estate/index','years',$url,$vo['id'])}">{$vo.name}</a></li>
                    </volist>
                </ul>
            </div>
        </div>
    </div>

</div>
<script type="text/javascript" src="__H__/js/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $(function(){
        $(".select").click(function(){
            $(this).find('dd').toggle();
        });
        $("#so_but").click(function(){
            var v = $("#houseKey").val();
            if(v=='' || v=='请输入您要搜索的关键字'){
                msg_show('请输入您要搜索的关键字',2);
                return false;
            }
            $("#soForm").submit();
        });
    });

</script>
<include file="Public:footer_nav" />
</div>
<include file="Public:footer" />